{
	"info": {
		"_postman_id": "4ef3e15b-04f2-4d41-b3e5-0d3b2fb398e9",
		"name": "GDPR B2B APIs Collections",
		"description": "RCDP GDPR APIs collections\n\nUnder \"Variables\" section, you must define below based on the access details provided by RCDP CSM and then start using it.\n\nB2B_URL  \nTENANT_HASH  \nOAUTH_KEY",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "17781451"
	},
	"item": [
		{
			"name": "Token Generation",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"let response = pm.response.json();\r",
							"pm.globals.set(\"ACCESS_TOKEN\", response.token);"
						],
						"type": "text/javascript",
						"packages": {},
						"requests": {}
					}
				}
			],
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "oauth_key_secret",
						"value": "{{OAUTH_KEY}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"resource\":[\"registerGdprRequest\",\"gdprRequestStatus\",\"revokeGdprActions\"],\r\n\"validity\":300\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/secureApi/token/gdpr/create",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"secureApi",
						"token",
						"gdpr",
						"create"
					]
				}
			},
			"response": []
		},
		{
			"name": "Register Right to access",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "reqParamValue",
						"value": "1",
						"type": "text"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"reqType\":\"access\",\r\n\"reqParam\":\"gcrid\",\r\n\"reqSource\":\"API\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/gdpr/b2b/registerGdprRequest",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"gdpr",
						"b2b",
						"registerGdprRequest"
					]
				}
			},
			"response": []
		},
		{
			"name": "Register Right to Forget",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "reqParamValue",
						"value": "1",
						"type": "text"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"reqType\":\"forget\",\r\n\"reqParam\":\"gcrid\",\r\n\"reqSource\":\"API\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/gdpr/b2b/registerGdprRequest",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"gdpr",
						"b2b",
						"registerGdprRequest"
					]
				}
			},
			"response": []
		},
		{
			"name": "Revoke Right to Forget",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "reqParamValue",
						"value": "1",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"reqParam\":\"gcrid\",\r\n\"reqSource\":\"API\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/gdpr/b2b/revokeGdprActions",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"gdpr",
						"b2b",
						"revokeGdprActions"
					]
				}
			},
			"response": []
		},
		{
			"name": "GDPR Request Status",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/gdpr/b2b/gdprRequestStatus?trackingId=67",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"gdpr",
						"b2b",
						"gdprRequestStatus"
					],
					"query": [
						{
							"key": "trackingId",
							"value": "67"
						}
					]
				}
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "B2B_URL",
			"value": ""
		},
		{
			"key": "TENANT_HASH",
			"value": ""
		},
		{
			"key": "OAUTH_KEY",
			"value": ""
		}
	]
}